package com.gdcn.report.tag;

public class ReplaceFirst1string {
	public static void main(String[] argv) 
	  {
	  boolean b;
	    String s="Welcome=to=Rose=India=.net"; 
	  String s2;
	  String t="?";
	    String  regex="=";
	  // Replaces the first substring of this string that matches the given regular expression with the given replacement.
	  s2 = s.replaceFirst(regex,t);    
	  System.out.println(s);
	  System.out.println(s2);
	  s2.indexOf("s");
	  }
}
